package com.atguigu.eduorder.service;

import com.atguigu.eduorder.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author zhaolie
 * @since 2020-12-20
 */

public interface OrderService extends IService<Order> {

    /**
     * 创建订单
     * @param courseId
     * @param userId
     * @return 订单编号
     */
    String createOrder(@Param("courseId") String courseId, @Param("userId") String userId);

    /**
     * 查询订单
     * @param orderNo
     * @return 订单信息
     */
    Order getOrderInfo(@Param("orderNo") String orderNo);
}
